/** \file    refine/types.h
  * \brief   Binary and grey mask types.
  * \date    2003, 2004
  * \author  Fedor Chelnokov
  * \version $Header: /home/cscom1r4/cvsroot/cs/include/refine/types.h,v 1.2 2006/01/15 07:31:32 cscom1r4 Exp $
  */

#ifndef _refine_types_h_
#define _refine_types_h_

#include "imglib/imageclass_decl.h"
#include "typelib/types.h"

namespace refine {

enum information {
	info_lightness,
	info_color,
	info_all
};

inline int ii(bool b)
	{ return b ? 1 : 0; }

namespace bit_mask {

	typedef img::bitmap mask;
	typedef bool mask_value;

} //namespace bit_mask

namespace grey_mask {

	typedef mono_byte_image	mask;
	typedef unsigned char /*mask::elem_type*/ mask_value;

} //namespace grey_mask

} //namespace refine

#endif //_refine_types_h_
